module.exports = {
  presets: [
    ['@vue/cli-plugin-babel/preset', {
      useBuiltIns: 'entry',
      corejs: 3,
    }],
  ],
  plugins: [
    '@babel/plugin-transform-new-target',
    '@babel/plugin-proposal-optional-chaining',
    ['import', {
      libraryName: 'vant',
      libraryDirectory: 'es',
      style: name => `${name}/style/less`,
    }, 'vant'],
  ],
};
